//
//  ColorConst.swift
//  QMXK
//
//  Created by jenkin on 2018/12/3.
//  Copyright © 2018年 jenkin. All rights reserved.
//

import UIKit

public let gp_app_key:String = "94c1780b7ab97573a3dae686e26cacb6"

class ColorConst: NSObject {

    static let shareColorConst:ColorConst = ColorConst.init()
    
    func RGBCOLOR(_ r:CGFloat, _ g:CGFloat, _ b:CGFloat, _ a:CGFloat) ->UIColor{
        return UIColor.init(red: r/255.0, green: g/255.0, blue: b/255.0, alpha: a)
    }
    
    func RGBCOLOR16(_ s: UInt32, _ a:CGFloat) ->UIColor{
        return UIColor.init(red: CGFloat((s & 0xFF0000) >> 16)/255.0, green: CGFloat((s & 0x00FF00) >> 8)/255.0, blue: CGFloat((s & 0x0000FF))/255.0, alpha: a)
    }
    
    func mainTintColor() -> UIColor {
        return self.RGBCOLOR(255, 80, 49, 1)
    }
    
    func viewBackColor() -> UIColor{
        return self.RGBCOLOR16(0xf5f5f5, 1)
    }
    
    func titleColor() -> UIColor{
        return self.RGBCOLOR16(0x333333, 1)
    }
    
    func lightTextColor() -> UIColor{
        return self.RGBCOLOR16(0x999999, 1)
    }
    
    func lineColor() -> UIColor{
        return self.RGBCOLOR16(0xf2f2f2, 1)
    }
}
